package com.htn.common.core.constant;

/**
 * ①	待接单：工长新创建的，没有人接单的订单
 * ②	已接单：司机抢单成功后，订单状态由待接单变为已接单
 * ③	已出发：司机滑动出发按钮后，订单状态由已接单变为已出发
 * ④	已到达：司机签到成功后，订单状态由已出发变为已到达
 * ⑤	工作中：司机滑动开始工作按钮，订单状态由已到达变为工作中
 * ⑥	已完成：司机滑动完成按钮并填写信息提交后，订单状态由工作中变为已完成
 * 泵车订单的状态
 * */
public enum ChildOrderStatusEnum {
    UNRECEIVED("1", "待接单"),
    RECEIVED("2", "已接单"),
    STARTUP("3", "已出发"),
    ARRIVED("4","已到达"),
    WORKING("5","工作中（进行中）"),
    COMPLETED("6","已完成"),
    UNDERREVIEW("7","确认中"),
    CANCELED("8","已取消"),
    ALL("all","全部")
    ;

    private final String value;
    private final String name;

    ChildOrderStatusEnum(String value, String name){
        this.value = value;
        this.name = name;
    }

    public String getName(){
        return name;
    }

    public String getValue(){
        return value;
    }
}
